package com.toubutu.audio.service;

import com.toubutu.audio.dto.DoCollectDto;
import com.toubutu.audio.dto.PageQueryCollectionDto;
import com.toubutu.audio.entity.Collection;
import com.baomidou.mybatisplus.extension.service.IService;
import com.toubutu.audio.vo.CollectionVo;
import com.toubutu.common.PageUtils;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 戒躁
 * @since 2024-02-26
 */
public interface CollectionService extends IService<Collection> {
    PageUtils<CollectionVo> pageQueryCollection(PageQueryCollectionDto dto);

    void doCollect(DoCollectDto doCollectDto);

    /**
     * 判断用户是否收藏该视频
     * @param userId 用户id
     * @param videoCode 视频编码
     * @return true 已收藏 false 未收藏
     */
    Boolean isCollect(Long userId,String videoCode);
}
